YUI.Use(new String[] { "button", "cssgrids", "slider" }, new YUICallback() {
@Override
public void ready(final YuiContext Y) {
Button button1 = Y.newButton(ButtonConfig.create().label("Button1"));
YButton button2 = new YButton(Y, "button2");
Slider slider1 = Y.newSlider(SliderConfig.create().axis("x").min(1).max(5).value(3).length(200)).cast();
GridPanel panel1 = new GridPanel(Y);
panel1.addChild("u-1-5", button1);
panel1.addChild("u-1-5", button2);