Skip to content

Commit

Permalink
feat(smart select): new sheetBackdrop parameter to control Sheet ba…
Browse files Browse the repository at this point in the history
…ckdrop
  • Loading branch information
nolimits4web committed May 27, 2021
1 parent 9e4e264 commit 0d2f60f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/smart-select/smart-select-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ class SmartSelect extends Framework7Class {

const sheetParams = {
content: sheetHtml,
backdrop: false,
backdrop: ss.params.sheetBackdrop,
scrollToEl: ss.$el,
closeByOutsideClick: true,
push: ss.params.sheetPush,
Expand Down
2 changes: 2 additions & 0 deletions src/core/components/smart-select/smart-select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export namespace SmartSelect {
sheetPush?: boolean;
/** Enables ability to close smart select sheet with swipe (default undefined) */
sheetSwipeToClose?: boolean | undefined;
/** Enables smart select sheet backdrop (default false) */
sheetBackdrop?: boolean;
/** Smart select page title. If not passed then it will be the <div class="item-title"> text */
pageTitle?: string;
/** Smart select Page back link text (default 'Back') */
Expand Down
1 change: 1 addition & 0 deletions src/core/components/smart-select/smart-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
popupSwipeToClose: undefined, // defaults to app
sheetPush: false,
sheetSwipeToClose: undefined, // defaults to app
sheetBackdrop: false,
pageTitle: undefined,
pageBackLinkText: 'Back',
popupCloseLinkText: 'Close',
Expand Down

0 comments on commit 0d2f60f

Please sign in to comment.