This widget is only instantiated in desktop mode. It will be destroyed
and recreated if the mode changes from destop to mobile, and back to desktop
`;
const RESPONSIVE_CSS = `.info {
font-size: 30px;
}
.desktop {
color: green;
}
.mobile {
color: blue;
}
.subwidget {
margin: 30px;
}`;
const EMPTY = `class App extends owl.Component {
}
const qweb = new owl.QWeb(TEMPLATES);
const app = new App({qweb});
app.mount(document.body);
`;
export const SAMPLES = [
{
description: "Click Counter",
code: CLICK_COUNTER,
xml: CLICK_COUNTER_XML,
css: CLICK_COUNTER_CSS
},
{
description: "Click Counter (ESNext)",
code: CLICK_COUNTER_ESNEXT,
xml: CLICK_COUNTER_XML,
css: CLICK_COUNTER_CSS
},
{
description: "Widget Composition",
code: WIDGET_COMPOSITION,
xml: WIDGET_COMPOSITION_XML,
css: WIDGET_COMPOSITION_CSS
},
{
description: "Animations",
code: ANIMATION,
xml: ANIMATION_XML,
css: ANIMATION_CSS,
},
{
description: "Lifecycle demo",
code: LIFECYCLE_DEMO,
xml: LIFECYCLE_DEMO_XML
},
{
description: "Benchmark application",
code: BENCHMARK_APP,
css: BENCHMARK_APP_CSS,
xml: BENCHMARK_APP_XML
},
{
description: "Todo List App (with store)",
code: TODO_APP_STORE,
css: TODO_APP_STORE_CSS,
xml: TODO_APP_STORE_XML
},
{
description: "Responsive app",
code: RESPONSIVE,
css: RESPONSIVE_CSS,
xml: RESPONSIVE_XML
},
{
description: "Empty",
code: EMPTY
}
];