mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 02:22:24 -05:00
14 lines
341 B
CoffeeScript
14 lines
341 B
CoffeeScript
|
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>
|
||
|
"""
|
||
|
|