-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding selectable-row component * Adding example usage to testbed * Using shorthand property name * No need for transclusion * Renaming selectable-row to check-box * Resetting testbed code
- Loading branch information
1 parent
816e550
commit 93fd1c5
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<input | ||
type="checkbox" | ||
class="kuiCheckBox" | ||
ng-click="checkBox.onSelectChange(checkBox.id, checkBox.isSelected)" | ||
ng-model="checkBox.isSelected" | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { uiModules } from 'ui/modules'; | ||
import template from './check_box.html'; | ||
|
||
const app = uiModules.get('kibana'); | ||
|
||
app.directive('checkBox', function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
template, | ||
scope: { | ||
id: '=', | ||
isSelected: '=', | ||
onSelectChange: '=', | ||
}, | ||
controllerAs: 'checkBox', | ||
bindToController: true, | ||
controller: class CheckBoxController { | ||
} | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './check_box'; |