mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-15 08:23:08 +00:00
Add toggler directive.
This commit is contained in:
parent
ba5118d02a
commit
ed20f8533f
1 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
||||||
|
define [
|
||||||
|
"base"
|
||||||
|
], (App) ->
|
||||||
|
App.directive "reviewPanelToggle", () ->
|
||||||
|
restrict: "E"
|
||||||
|
scope:
|
||||||
|
innerModel: '=ngModel'
|
||||||
|
template: """
|
||||||
|
<div class="rp-toggle">
|
||||||
|
<input id="rp-toggle-{{$id}}" type="checkbox" class="rp-toggle-hidden-input" ng-model="innerModel" />
|
||||||
|
<label for="rp-toggle-{{$id}}" class="rp-toggle-btn"></label>
|
||||||
|
</div>
|
||||||
|
"""
|
||||||
|
|
Loading…
Reference in a new issue