All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nasdanika.html.knockout.impl.DefaultKnockoutFactory Maven / Gradle / Ivy

There is a newer version: 2022.1.1
Show newest version
package org.nasdanika.html.knockout.impl;

import org.nasdanika.html.HTMLElement;
import org.nasdanika.html.HTMLFactory;
import org.nasdanika.html.HTMLPage;
import org.nasdanika.html.knockout.Knockout;
import org.nasdanika.html.knockout.KnockoutFactory;
import org.nasdanika.html.knockout.KnockoutVirtualElement;

public class DefaultKnockoutFactory implements KnockoutFactory {
	
	private HTMLFactory htmlFactory;

	public DefaultKnockoutFactory(HTMLFactory htmlFactory) {
		this.htmlFactory = htmlFactory;
	}
	
	@Override
	public HTMLFactory getHTMLFactory() {
		return htmlFactory;
	}
	
	@Override
	public > Knockout from(H htmlElement) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public KnockoutVirtualElement virtualElement(Object... content) {
		return new KnockoutVirtualElementImpl(this, content);
	}

	@Override
	public 

P cdn(P page) { page.script("https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.0/knockout-min.js"); return page; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy