버튼

버튼을 표시하려면 구성 요소 버튼을 사용합니다.
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이 포함되지만 이에 제한되지 않습니다.

참고: 다음 on-<events> 는 컨트롤러에서 명령을 호출하는 구문입니다.

렌더링된 버튼은 다음과 같이 표시됩니다.

단추

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