gwt.material.design.client.js.JsMaterialElement Maven / Gradle / Ivy
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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.
* #L%
*/
package gwt.material.design.client.js;
import com.google.gwt.core.client.JsDate;
import com.google.gwt.dom.client.Element;
import gwt.material.design.jquery.client.api.Functions;
import gwt.material.design.jquery.client.api.JQueryElement;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
/**
* JSInterop utils for Materialize component
*
* @author kevzlou7979
*/
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class JsMaterialElement extends JQueryElement {
@JsMethod(name = "$", namespace = JsPackage.GLOBAL)
public static native JsMaterialElement $(JQueryElement element);
@JsMethod(name = "$", namespace = JsPackage.GLOBAL)
public static native JsMaterialElement $(Element element);
@JsMethod(name = "$", namespace = JsPackage.GLOBAL)
public static native JsMaterialElement $(String selector);
/**
* Collapsible Component
*/
@JsMethod
public native JQueryElement collapsible(boolean accordion);
/**
* Tabs Component
*/
@JsMethod
public native JQueryElement tabs();
@JsMethod
public native JQueryElement tabs(String method, String id);
/**
* Dropdown Component
*/
@JsMethod
public native JQueryElement dropdown(JsDropdownOptions options);
@JsMethod
public native JQueryElement dropdown(String actions);
/**
* FAB - Floating Action Component
*/
@JsMethod
public native JQueryElement openFAB();
@JsMethod
public native JQueryElement closeFAB();
/**
* Modal component
*/
@JsMethod
public native JQueryElement openModal(JsModalOptions options);
@JsMethod
public native JQueryElement closeModal(JsModalOptions options);
/**
* Parallax Component
*/
@JsMethod
public native JQueryElement parallax();
/**
* Tooltip Component
*/
@JsMethod
public native JQueryElement tooltip(String command);
@JsMethod
public native JQueryElement tooltip(JsTooltipOptions options);
/**
* Slider Component
*/
@JsMethod
public native JQueryElement slider(JsSliderOptions options);
@JsMethod
public native JQueryElement slider(String action);
/**
* Scrollspy Component
*/
@JsMethod
public native JQueryElement scrollSpy();
/**
* Image Component
*/
@JsMethod
public native JQueryElement materialbox();
/**
* Listbox Component
*/
@JsMethod
public native JQueryElement material_select();
@JsMethod
public native JQueryElement material_select(Functions.Func callback);
@JsMethod
public native JQueryElement material_select(String action);
/**
* Pushpin Component
*/
@JsMethod
public native JQueryElement pushpin(JsPushpinOptions options);
/**
* Sidenav Component
*/
@JsMethod
public native JQueryElement sideNav(JsSideNavOptions options);
@JsMethod
public native JQueryElement sideNav(String action);
/**
* Date Picker Component
*/
@JsMethod
public native JsMaterialElement pickadate(String picker);
@JsMethod
public native JsMaterialElement pickadate(JsDatePickerOptions property);
@JsMethod
public native JsMaterialElement set(String key, Object value);
@JsMethod
public native JsMaterialElement on(String action, Functions.Func1 thing);
@JsMethod
public native JsMaterialElement set(String key, Object value, Functions.Func function);
@JsMethod
public native JsMaterialElement get(String key);
@JsProperty(name = "$root")
public JsMaterialElement root;
@JsProperty
public JsDate obj;
@JsMethod
public native JsMaterialElement stop();
@JsMethod
public native JsMaterialElement start();
@JsMethod
public native void clear();
@JsMethod
public native JsMaterialElement off(JsDatePickerOptions options);
@JsMethod
public native JsMaterialElement off(String action);
@JsMethod
public native JsMaterialElement on(JsDatePickerOptions options);
@JsMethod
public native JsMaterialElement render(boolean value);
@JsMethod
public native void open();
@JsMethod
public native void close();
/**
* Dismissable CollectionItem Component
*/
@JsMethod(namespace = JsPackage.GLOBAL)
public static native void initDismissableCollection();
/**
* Navbar Component
*/
@JsMethod(namespace = JsPackage.GLOBAL)
public static native void initShrink(Element element, int duration);
/**
* Animation Component
*/
@JsMethod(namespace = JsPackage.GLOBAL)
public static native void closeGrid(Object selector);
@JsMethod(namespace = JsPackage.GLOBAL)
public static native void showGrid(Object selector);
@JsMethod(namespace = "Materialize")
public static native double fadeInImage(Object selector);
@JsMethod(namespace = "Materialize")
public static native double showStaggeredList(Object selector);
@JsMethod(namespace = "Waves")
public static native void displayEffect();
/**
* Toast Component
*/
@JsMethod(namespace = "Materialize")
public static native double toast(String message, Object duration, String classname, Functions.Func callback);
/**
* Character Component
*/
@JsMethod
public native JsMaterialElement characterCounter();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy