Skip to content

pantoken-root / 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">Պահպանել փոփոխությունները</instui-button>
<instui-button variant="danger" margin="small">Ջնջել</instui-button>
<instui-button popovertarget="cv">Մանրամասներ</instui-button>
<instui-context-view id="cv">Ավելին այս տարրի մասին։</instui-context-view>