Remove with Text
Remove GetEngineeringSpcReview Better error message EnforceCodeStyleInBuild NginxFileSystem Remove Reactors and Working Directory AppSettings Delete self contained Thunder Tests Back to .net8.0 api/v4/InfinityQS ApiExplorerSettings Wafer Counter
This commit is contained in:
35
Server/wwwroot/package/dist/collection/components/search-bar/search-bar.stories.js
vendored
Normal file
35
Server/wwwroot/package/dist/collection/components/search-bar/search-bar.stories.js
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
import { action } from "@storybook/addon-actions";
|
||||
export default {
|
||||
title: 'Components/Search Bar',
|
||||
// tags: ['autodocs'],
|
||||
args: {
|
||||
disabled: false,
|
||||
isOpen: true,
|
||||
},
|
||||
argTypes: {
|
||||
ifxInput: {
|
||||
action: 'ifxInput',
|
||||
description: 'Custom event emitted on input\n\n(see below for Two Way Data Binding in different JS frameworks)',
|
||||
},
|
||||
ifxSearchBarIsOpen: {
|
||||
action: 'ifxInput',
|
||||
description: 'Custom event',
|
||||
table: {
|
||||
type: {
|
||||
summary: 'Framework integration',
|
||||
detail: 'React: onIfxInput={handleInput}\nVue:@ifxInput="handleInput"\nAngular:(ifxInput)="handleInput()"\nVanillaJs:.addEventListener("ifxInput", (event) => {//handle input});',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
const DefaultTemplate = ({ isOpen, disabled }) => {
|
||||
const element = document.createElement('ifx-search-bar');
|
||||
element.setAttribute('is-open', isOpen);
|
||||
element.setAttribute('disabled', disabled);
|
||||
element.addEventListener('ifxInput', action('ifxInput'));
|
||||
return element;
|
||||
};
|
||||
export const Default = DefaultTemplate.bind({});
|
||||
Default.args = {};
|
||||
//# sourceMappingURL=search-bar.stories.js.map
|
Reference in New Issue
Block a user