ボタン

ボタンを表示するには、コンポーネントの「 」ボタンを使用します。
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. その他のプロパティには、variant、label、on-click などがありますが、これらに限定されません。

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

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

ボタン

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