Sha256: 714b60563cc5438889416df3dcb8762ed58cb73c7a59781f209714e1c9b1b398

Contents?: true

Size: 1.87 KB

Versions: 4

Compression:

Stored size: 1.87 KB

Contents

/*!
 * UI development toolkit for HTML5 (OpenUI5)
 * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define(['jquery.sap.global','./library','sap/ui/core/Control',"./TriStateCheckBoxRenderer"],function(q,l,C,T){"use strict";var a=C.extend("sap.ui.commons.TriStateCheckBox",{metadata:{library:"sap.ui.commons",properties:{selectionState:{type:"sap.ui.commons.TriStateCheckBoxState",group:"Data",defaultValue:sap.ui.commons.TriStateCheckBoxState.Unchecked},text:{type:"string",group:"Appearance",defaultValue:null},enabled:{type:"boolean",group:"Behavior",defaultValue:true},editable:{type:"boolean",group:"Behavior",defaultValue:true},valueState:{type:"sap.ui.core.ValueState",group:"Data",defaultValue:sap.ui.core.ValueState.None},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:null},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:sap.ui.core.TextDirection.Inherit}},events:{change:{parameters:{selectionState:{type:"string"}}}}}});a.prototype.onclick=function(e){if(!!sap.ui.Device.browser.internet_explorer&&(!this.getEnabled())){this.$().attr("tabindex",0).addClass("sapUiTriCbFoc");}this.userToggle(e);};a.prototype.onfocusout=function(e){if(!!sap.ui.Device.browser.internet_explorer&&(!this.getEnabled())){this.$().attr("tabindex",-1).removeClass("sapUiTriCbFoc");}};a.prototype.onsapspace=function(e){e.preventDefault();this.userToggle(e);};a.prototype.userToggle=function(e){if(this.getEnabled()&&this.getEditable()){if(this.getSelectionState()==='Mixed'||this.getSelectionState()==="Unchecked"){this.toggle("Checked");}else{this.toggle("Unchecked");}this.fireChange({selectionState:this.getSelectionState()});}else{this.getDomRef().focus();}};a.prototype.toggle=function(d){if(d in sap.ui.commons.TriStateCheckBoxState){this.setSelectionState(d);}};return a;},true);

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fiveapples-0.0.7 lib/openui5-runtime-1.60.23/resources/sap/ui/commons/TriStateCheckBox.js
fiveapples-0.0.6 lib/openui5-runtime-1.60.23/resources/sap/ui/commons/TriStateCheckBox.js
fiveapples-0.0.5 lib/openui5-runtime-1.60.23/resources/sap/ui/commons/TriStateCheckBox.js
jekyll-openui5-0.1.0 assets/sap/ui/commons/TriStateCheckBox.js