@grapecity/wijmo.vue2.grid.detail
Version:
UI library for pure JS, Angular, React, Vue and more...
97 lines (95 loc) • 3.15 kB
TypeScript
/*!
*
* Wijmo Library 5.20202.704-nightly.d20200815.t020901
* http://wijmo.com/
*
* Copyright(c) GrapeCity, Inc. All rights reserved.
*
* Licensed under the GrapeCity Commercial License.
* sales@wijmo.com
* wijmo.com/products/wijmo-5/license/
*
*/
/**
* {@module wijmo.vue2.grid.detail}
* Wijmo interop module for
* <a href="https://vuejs.org/2016/04/27/announcing-2.0/" target="_blank">Vue 2</a>.
*
* This module provides Vue 2 components that encapsulate Wijmo controls.
*
* To use it, your application must include references to the Vue 2
* framework (RC6 or later), as well as the regular Wijmo CSS and js files.
*
* To add Wijmo controls to Vue pages, include the appropriate
* tags in your HTML files. For example, the code below adds
* an {@link InputNumber} control to a Vue page:
*
* ```html
* <wj-input-number
* format="c2"
* placeholder="Sales"
* :value="sales"
* :value-changed="salesChanged"
* :min="0"
* :max="10000"
* :step="100"
* :is-required="false">
* </wj-input-number>
* ```
*
* ```typescript
* // Wijmo event handler
* // update "sales" value to match the InputNumber value
* function salesChanged(sender, eventArgs) {
* this.sales = sender.value;
* }
* ```
*
* The example illustrates the following important points:
*
* <ol>
* <li>
* Wijmo controls have tag names that start with the "wj" prefix, followed by
* the control name using lower-case and hyphen separators.</li>
* <li>
* The tag attribute names match the control's properties and events.</li>
* <li>
* Colons before attribute names indicate the attribute value should be
* interpreted as JavaScript expressions (e.g. <code>:min="0"</code>).</li>
* <li>
* Event handlers are specified the same way as regular properties
* (e.g. <code>:value-changed="salesChanged"</code>).</li>
* <li>
* In Vue2, all bindings are one-way. In the example above, the "salesChanged"
* event handler is responsible for updating the value of the "sales"
* property in the model. This is a change from Vue 1, where two-way bindings
* could be created by adding the ".sync" suffix to any attribute.</li>
* </ol>
*
* All Wijmo Vue components include an "initialized" event that is
* raised after the control has been added to the page and initialized.
* You can use this event to perform additional initialization in addition
* to setting properties in markup. For example:
*
* <pre><wj-flex-grid :initialized="initGrid">
* </wj-flex-grid></pre>
* <pre>// Vue application
* var app = new Vue({
* el: '#app',
* methods: {
* initGrid: function(s, e) {
* // assign a custom MergeManager to the grid
* s.mergeManager = new CustomMergeManager(s);
* }
* }
* });</pre>
*/
/**
*
*/
export declare var ___keepComment: any;
/**
* Vue component that represents a {@link wijmo.grid.detail.FlexGridDetailProvider} in a {@link wijmo.vue2.grid.WjFlexGrid}.
*/
export declare var WjFlexGridDetail: any;
export declare function registerGridDetail(app: any): void;