Forum Stats

  • 3,769,497 Users
  • 2,252,970 Discussions
  • 7,875,057 Comments

Discussions

How to wrap ojButton's in ojButtonset?

2830297
2830297 Member Posts: 2
edited Dec 17, 2015 9:55AM in Oracle JET

I am facing an issue in wrapping ojButton in ojButtonset. As I need to render ojButton's in a form , instead of wrapping its apply scrop. Please help in fixing this issue.

Answers

  • John 'JB' Brock-Oracle
    John 'JB' Brock-Oracle Posts: 2,698 Employee
    edited Dec 17, 2015 9:53AM

    Not quite sure what issues you are having, as you have not provided the version of JET that you are using, or any error messages that may point to the problem.

    Here is a code sample that shows how a buttonset can be setup:

    <code>

        <div id="formatset"

            data-bind="ojComponent: {component: 'ojButtonset',

                                      optionChange: handleFormatChange}"

            aria-controls="formattedText">

          <button data-bind="ojComponent: {component: 'ojButton', label:'One'}"></button>

          <button data-bind="ojComponent: {component: 'ojButton', label:'Two'}"></button>

          <button data-bind="ojComponent: {component: 'ojButton', label:'Three'}"></button>

        </div>

    </code>

  • John 'JB' Brock-Oracle
    John 'JB' Brock-Oracle Posts: 2,698 Employee
    edited Dec 17, 2015 9:55AM

    You can also look at the Toolbar example on the JET website.  It may be more of what you are looking for.

    Oracle JET - Toolbar - Toolbar

    The ButtonSet demos on the JET website can be found at:

    Oracle JET - Toggle Button - Checkbox Set