Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kathleentynan committed Feb 12, 2024
1 parent 450c41f commit 2e2bce8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ const storeDetails = {
displayOutOfStock: '', // "1" will return from php escapeJs and boolean is returned if called from data-service-graphql
displayMode: '', // "" for search || "PAGE" for category search
locale: '', //add locale for translations
priceSlider: false, //enable slider for price
imageCarousel: false, //enable multiple image carousel
listview: false; //add listview as an option
priceSlider: false, //enable slider for price - EXPERIMENTAL, default is false
imageCarousel: false, //enable multiple image carousel - EXPERIMENTAL, default is false
listview: false; //add listview as an option - EXPERIMENTAL, default is false
optimizeImages: true, // optimize images with Fastly
imageBaseWidth: 200,
resolveCartId?: resolveCartId // Luma specific addToCart method. Enabled with the extension
Expand Down Expand Up @@ -199,6 +199,8 @@ You can add your own variables to [tokens.css](./src/styles/tokens.css). Further

### Have tailwind only apply to the nested widget

Now default behavior:

Follow the [tailwind nesting documentation](https://tailwindcss.com/docs/using-with-preprocessors#nesting). Your [postcss.config](./postcss.config.js) will look like this:

```
Expand Down
14 changes: 14 additions & 0 deletions dev-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@
displaySearchBox: true, // display search box
displayOutOfStock: true,
allowAllProducts: false,
// currentCategoryUrlPath?: '', // current category url path
// categoryName: '', // name of category to display
// displaySearchBox: false, // display search box
// displayOutOfStock: '', // "1" will return from php escapeJs and boolean is returned if called from data-service-graphql
// displayMode: '', // "" for search || "PAGE" for category search
// locale: '', //add locale for translations
// priceSlider: false, //enable slider for price - EXPERIMENTAL, default is false
// imageCarousel: false, //enable multiple image carousel - EXPERIMENTAL, default is false
// listview: false; //add listview as an option - EXPERIMENTAL, default is false
// optimizeImages: true, // optimize images with Fastly
// imageBaseWidth: 200,
// resolveCartId?: resolveCartId, // Luma specific addToCart method. Enabled with the extension
// refreshCart?: refreshCart, // Luma specific addToCart method. Enabled with the extension
// addToCart?: (sku, options, quantity)=>{} // custom add to cart callback function. Called on addToCart action
},
context: {
customerGroup: '',
Expand Down

0 comments on commit 2e2bce8

Please sign in to comment.