ボタン

ボタンを表示するには、コンポーネント、ボタンを使用します。
JUI のボタンコンポーネントは HTML <button/> を表します。

const buttonJSON = {
  "component": "button",//tells the component name
  "label": "Yes, login",//tells the text for the button
  "variant": "cta",//tells the variants for the button which  provides default styles
  "on-click": "done",//tells what function to run after user clicks the button
};

これにより、Yes, login というラベルのボタンが生成されます。 その他のプロパティには、バリアント、ラベル、クリック時が含まれますが、これらに限定されません。

注意: コントローラ内のコマンドを呼び出すための構文は on-<events> のとおりです。

レンダリングされたボタンは次のようになります。

button

recommendation-more-help
11125c99-e1a1-4369-b5d7-fb3098b9b178