Skip to content

dikalo/ahome-enquire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Ahomé-Enquire

About Ahomé-Enquire

Built on-top of Enquire.js, Ahomé-Enquire is a GWT-based library that helps you create dynamic CSS media queries in your web application.

##Enterprise Support Get high quality support through Ahomé (Note that all Ahomé Tools are FREE to use with an Apache 2 License).

##Community

Getting Started with Ahomé-Enquire

  1. Download the jar file

  2. Inherit the ahome-enquire module

<inherits name='com.ait.toolkit.enquire.Enquire'/>
  1. Start coding
package com.ait.toolkit.playground.client;

import com.ait.toolkit.core.client.Function;
import com.ait.toolkit.enquire.client.Enquire;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootPanel;

public class EnquireEntryPoint implements EntryPoint {

	@Override
	public void onModuleLoad() {
		Enquire.get().register("screen and (max-width:45em)", new Function() {
			@Override
			public void execute() {
				RootPanel.getBodyElement().getStyle().setBackgroundColor("green");
			}
		});
	}
}
  1. Find more code in the Examples Folder

  2. Learn more about our Open Source tools HERE