Skip to content

Instantly share code, notes, and snippets.

@werdnum
Created February 18, 2015 14:05
Show Gist options
  • Save werdnum/6682d566a41bc8f353b9 to your computer and use it in GitHub Desktop.
Save werdnum/6682d566a41bc8f353b9 to your computer and use it in GitHub Desktop.
<?php
namespace OOUIPlayground\Combinatorics;
return array(
'button' => new PropertyCombiner( array(
'flags' => new FlagsList( new ComposedProperty( array(
new OptionalProperty(
new SingleChoiceProperty( array( 'constructive', 'destructive', 'progressive' ) )
),
new OptionalProperty(
new SingleChoiceProperty( array( 'primary', 'quiet' ) )
),
) ) ),
'title' => new OptionalProperty(
new StaticProperty( 'Title attribute' )
),
'label' => new StaticProperty( 'Button' ),
'indicator' => new OptionalProperty(
new StaticProperty( 'alert' )
),
'icon' => new OptionalProperty(
new StaticProperty( 'add' )
),
'framed' => new OptionalProperty(
new StaticProperty( false )
),
'disabled' => new OptionalProperty(
new StaticProperty( true )
),
) ),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment