-
Notifications
You must be signed in to change notification settings - Fork 0
RadioBox
Evgenii Koriakin edited this page Oct 24, 2016
·
28 revisions
View:
<ma-radio-box
item="ports[0]"
value="port">
</ma-radio-box>
<ma-radio-box
item="ports[1]"
value="port">
</ma-radio-box>
<ma-radio-box
item="ports[2]"
value="port">
</ma-radio-box>
Controller:
$scope.ports = ['Tokai', 'Vladivostok', 'Navlakhi'];
$scope.port = null;
View:
<ma-radio-box
item="ports[0]"
item-text-field="name"
item-value-field="id"
value="port">
</ma-radio-box>
<ma-radio-box
item="ports[1]"
item-text-field="name"
item-value-field="id"
value="port">
</ma-radio-box>
<ma-radio-box
item="ports[2]"
item-text-field="name"
item-value-field="id"
value="port">
</ma-radio-box>
Controller:
$scope.ports = [{
id: 1,
name: 'Tokai'
}, {
id: 2,
name: 'Vladivostok'
}, {
id: 3,
name: 'Navlakhi'
}];
$scope.port = null;
Determines whether the text is displayed.
Boolean
false
Sets the field:
View:
<ma-radio-box
hide-text="true">
</ma-radio-box>
Determines whether the component is disabled.
Boolean
false
Sets the field:
View:
<ma-radio-box
is-disabled="true">
</ma-radio-box>
A value of the component which is bound to an outer scope with two-way data binding.
Object
null
Sets the field:
View:
<ma-radio-box
value="port">
</ma-radio-box>
Controller:
$scope.ports = [{
id: 1,
name: 'Tokai'
}, {
id: 2,
name: 'Vladivostok'
}, {
id: 3,
name: 'Navlakhi'
}];
$scope.port = $scope.ports[1];