cordova-plugin-ace
Version:
Enables you to mix native UI and native code with your JavaScript and HTML. http://microsoft.github.io/ace
24 lines (18 loc) • 987 B
JavaScript
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
//
// Defines column-specific properties that apply to Grid elements.
//
function ColumnDefinition(optionalWidth) {
ace.UIElement.call(this, "Windows.UI.Xaml.Controls.ColumnDefinition");
if (optionalWidth) {
this.setWidth(optionalWidth);
}
};
// Inheritance
ColumnDefinition.prototype = Object.create(ace.NativeObject.prototype);
ColumnDefinition.prototype.getWidth = function () { return this.get("ColumnDefinition.Width"); };
ColumnDefinition.prototype.setWidth = function (gridLength) { this.set("ColumnDefinition.Width", gridLength); };
module.exports = ColumnDefinition;