![JAR search and dependency download from the Maven repository](/logo.png)
org.nasdanika.html.knockout.KnockoutControlFlow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of knockout Show documentation
Show all versions of knockout Show documentation
Classes for generating KnockoutJs bindings.
package org.nasdanika.html.knockout;
/**
* Knockout bindings which can be used on regular and virtual elements.
* @author Pavel
*
*/
public interface KnockoutControlFlow extends KnockoutBindingsSource {
T foreach(Object expression);
T foreach(Object expression, Object initialValue);
T if_(Object expression);
T if_(Object expression, Object initialValue);
T ifnot(Object expression);
T ifnot(Object expression, Object initialValue);
T with(Object expression);
T component(Object expression);
/**
* Custom binding
* @param binding
* @param expression
* @param initialValue Initial value to use in generated observables or null.
* @return
*/
T bind(String binding, Object expression, Object initialValue);
/**
* Generates observable values and arrays for this and
* contained elements.
* @param excludes Bindings to exclude, e.g. computed or pure computed bindings.
* @return List of var varName = ko.observable();
*/
String generateObservables(String... excludes);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy