Skip to content

Commit

Permalink
Lib update
Browse files Browse the repository at this point in the history
  • Loading branch information
dthevenin committed Dec 20, 2012
1 parent 205fac7 commit cea3576
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/nibbler.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,8 @@ nibbler.ui.SegmentedButton.vs_init = function () {
instance.__vs_instance.configure ({
isToggleButtons: instance.properties.istogglebuttons,
items: instance.properties.items,
type: instance.properties.type
type: instance.properties.type,
orientation: instance.properties.orientation
});

instance.__vs_instance.bind ('select', instance.__vs_instance, function (e) {
Expand Down
6 changes: 5 additions & 1 deletion lib/ui/SegmentedButton.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<component xmlns="http://bender.igel.co.jp" prototype="nibbler.ui.SegmentedButton">

<property name="items" as="dynamic" value="[]"/>
<property name="istogglebuttons" value="true"/>
<property name="istogglebuttons" as="boolean" value="true"/>
<property name="orientation" value="horizontal"/>
<property name="type" value="default"/>

<view xmlns:html="http://www.w3.org/1999/xhtml">
Expand All @@ -15,6 +16,9 @@
<get instance="$self" property="type">
this.__vs_instance.type = value;
</get>
<get instance="$self" property="orientation">
this.__vs_instance.orientation = value;
</get>
<get instance="$self" property="istogglebuttons">
if (value == "false") value = false;
else if (value == "true") value = true;
Expand Down

0 comments on commit cea3576

Please sign in to comment.