chocolatechip-ui-jq icon indicating copy to clipboard operation
chocolatechip-ui-jq copied to clipboard

Is there a way to create a segmentedcontrol in the navbar and toolbar using chui for jQuery?

Open mlammert opened this issue 12 years ago • 1 comments

I have been studying the segmented controls examples that came with the jQuery download. I can get these to work when they are put inside of a within a .

However, if I try and put the inside of a or a I get a javascript error:

Uncaught TypeError: Cannot call method 'refresh' of undefined chui.js:864 $.fn.UICreateSegmentedControl.segmentedControl chui.js:864 e.extend.each jquery-1.7.2.min.js:2 e.fn.e.each jquery-1.7.2.min.js:2 $.fn.UICreateSegmentedControl.segmentedControl chui.js:861 f.Callbacks.o jquery-1.7.2.min.js:2 f.Callbacks.p.fireWith jquery-1.7.2.min.js:2 e.extend.ready jquery-1.7.2.min.js:2 c.addEventListener.B

Is it possible to use the segmented controls within the or using Chocolatechip for jQuery?

Thank you as always!

mlammert avatar Jul 25 '12 21:07 mlammert

Well, technically that shouldn't be an issue. For example the segmented paging control is in the navbar and manages the panels fine. It looks like you entered markup in your post, but that got stripped out. If you put a line break and for spaces in front of your code, Github will preserve the tags and formatting, something like this:

<navbar>
    <h1>Title</h1>
</navbar>

What is the purpose you are trying to achieve with a segmented control in the navbar? Do you want to toggle several subviews? The paging control already accomplishes this.

rbiggs avatar Aug 02 '12 04:08 rbiggs