<!--

    Copyright © 2016-2018 The Thingsboard Authors

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<div style="background: #fff;" ng-class="{'tb-disabled': disabled, 'fill-height': fillHeight}" tb-expand-fullscreen fullscreen-zindex="100" expand-button-id="expand-button" on-fullscreen-changed="onFullscreenChanged()" layout="column">
	<div layout="row" layout-align="start center" style="height: 40px;">
		<label class="tb-title no-padding">function {{ functionName }}({{ functionArgsString }}) {</label>
		<span flex></span>
		<div id="expand-button" layout="column" aria-label="Fullscreen" class="md-button md-icon-button tb-md-32 tb-fullscreen-button-style"></div>
	</div>
	<div flex id="tb-javascript-panel" class="tb-js-func-panel" layout="column">
		<div flex id="tb-javascript-input" ng-class="{'fill-height': fillHeight}"
			 ui-ace="jsEditorOptions"
			 ng-readonly="disabled"
			 ng-model="functionBody">
		</div>
	</div>
	<div layout="row" layout-align="start center"  style="height: 40px;">
		<label class="tb-title no-padding">}</label>
	</div>
</div>
