Skip to content

pantoken / renderers/web-components/src / button

Փոփոխական: button

const button: ElementDefinition

Ալֆա

<instui-button> — նշանի-ոճավորված <button>: variant հատկությունը քարտեզ է անում -color-<variant> փոփոխիչին (secondary, tertiary, success, danger, ai, …); margin ավելացնում է տարածություն հյուսնիկի շուրջ (InstUI հեղացո՞ղներ ինչպես small / medium large); տեղադրված բովանդակությունը պիտակն է:

Դա նաև հայրենի կանչողն է. popovertarget (ընտրովի popovertargetaction) անջատում է ցանկացած լույսի-DOM [popover] ինչպես <instui-context-view>, <instui-popover>, կամ <instui-tray>, և command/commandfor վարում է հրամանի վրա հիմնված բաղադրիչներ (<instui-modal>--show/--close հետ, և այլն): ID-ը ցակատարվում է ներքին կոճակին կանչողի IDL-ի միջոցով, ուստի այն լուծվում է ստվերային սահմանի միջոցով և կարող է մատնացույց անել այն տարրի, որը հետագայում հայտարարված է փաստաթղթում:

Օրինակ

html
<instui-button variant="primary" margin="small">Save changes</instui-button>
<instui-button variant="danger" margin="small">Delete</instui-button>
<instui-button popovertarget="cv">Details</instui-button>
<instui-context-view id="cv">More about this item.</instui-context-view>