We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a higher order component wrapping a menu component.
If an 'apply' is needed, the menu should expose checkboxes. If the update is automatic the menu should expose toggles.
immediate
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 0px 0px rgba(0, 0, 0, 0.08);
allowSelectAll
submitButtonText
Submit
cancelButtonText
Cancel
export interface TsSwitchListItemBase { display: string; value: string; selected: boolean; } export interface TsSwitchListItemCheckbox extends TsSwitchListItemBase { indeterminate: boolean; } export type TsSwitchListItem = TsSwitchListItemBase | TsSwitchListItemCheckbox; const items: TsSwitchListItemBase[] = [ { display: 'Option a', value: 'a', selected: false, }, { display: 'Option b', value: 'b', selected: true, }, ];
<button [tsSwitchListTrigger]="myList">Open list</button> <ts-switch-list [items]="items" (selectionChange)="doSomething($event)" #myList="tsSwitchList" ></ts-switch-list> <ts-switch-list [items]="items" [isAsync]="false" submitButtonText="Confirm" cancelButtonText="Cancel" (selectionChange)="doSomething($event)" ></ts-switch-list>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a higher order component wrapping a menu component.
If an 'apply' is needed, the menu should expose checkboxes. If the update is automatic the menu should expose toggles.
immediate
default truebox-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 0px 0px rgba(0, 0, 0, 0.08);
allowSelectAll
?submitButtonText
- defaultSubmit
cancelButtonText
- defaultCancel
Possible implementations
Resources
The text was updated successfully, but these errors were encountered: