Created
November 5, 2022 02:14
-
-
Save mailtodanish/9aa0b012620708e42dea961cb6cd62be to your computer and use it in GitHub Desktop.
demo-oj-select-single
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<oj-select-single | |
class="oj-form-control-max-width-sm oj-form-control-width-sm oj-form-control-text-align-start __input_txt" | |
value="{{form.accountNumber}}" data="[[accountNumbers]]" label-hint="Account Number" | |
:id="[['selected-account-id'+$uniqueId]]" required placeholder="Select Account " | |
item-text="[[getItemText]]"> | |
<template slot="collectionTemplate" data-oj-as="collection"> | |
<oj-list-view aria-label="select" gridlines.item="visibleExceptLast" selection-mode="single" | |
class="oj-select-results custom-list-item" data="[[collection.data]]" selected="[[collection.selected]]" | |
current-item="{{collection.currentRow.rowKey}}" on-oj-item-action="[[collection.handleRowAction]]"> | |
<template slot="itemTemplate" data-oj-as="item"> | |
<oj-list-item-layout class="oj-listitemlayout-padding-off"> | |
<span class="oj-typography-body-sm oj-text-color-primary"> | |
<oj-highlight-text text='[[item.data.AccountNumber ]]' | |
match-text="[[collection.searchText]]"></oj-highlight-text> | |
</span> | |
</oj-list-item-layout> | |
</template> | |
</oj-list-view> | |
</template> | |
</oj-select-single> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment