How to use the @dojo/framework/widget-core/vdom function in @dojo/framework

To help you get started, we’ve selected a few @dojo/framework examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webcomponents / custom-elements-everywhere / libraries / dojo / src / advanced-tests.ts View on Github external
it("can declaratively listen to a CAPScase DOM event dispatched by a Custom Element", function() {
      this.weight = 1;
      const r = renderer(() => w(ComponentWithDeclarativeEvent, {}));
      r.mount({ domNode: scratch, sync: true });
      const wc: any = document.querySelector("ce-with-event");
      let handledResult: any = document.querySelector("#caps");
      expect(handledResult.handled).to.be.false;
      wc.click();
      expect(handledResult.handled).to.be.true;
    });
github dojo / dojo.io / site / source / tutorials / 1050_development_environment / demo / initial / biz-e-corp / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';
import App from './widgets/App';

const r = renderer(() => w(App, {}));
r.mount({ domNode: document.querySelector('my-app') as HTMLElement });
github dojo / dojo.io / site / source / tutorials / 005_form_widgets / demo / initial / biz-e-corp / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';
import App from './widgets/App';

const r = renderer(() => w(App, {}));
r.mount({ domNode: document.querySelector('my-app') as HTMLElement });
github dojo / dojo.io / site / source / tutorials / 004_user_interactions / demo / initial / biz-e-corp / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';
import App from './widgets/App';

const r = renderer(() => w(App, {}));
r.mount({ domNode: document.querySelector('my-app') as HTMLElement });
github dojo / dojo.io / site / source / tutorials / 007_theming / demo / finished / biz-e-corp / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';
import { registerThemeInjector } from '@dojo/framework/widget-core/mixins/Themed';
import { Registry } from '@dojo/framework/widget-core/Registry';
import App from './widgets/App';
import theme from './themes/dojo/theme';

const registry = new Registry();
registerThemeInjector(theme, registry);

const r = renderer(() => w(App, {}));
r.mount({ domNode: document.querySelector('my-app') as HTMLElement, registry });
github dojo / dojo.io / site / source / tutorials / 005_form_widgets / demo / finished / biz-e-corp / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';
import App from './widgets/App';

const r = renderer(() => w(App, {}));
r.mount({ domNode: document.querySelector('my-app') as HTMLElement });
github dojo / dojo.io / site / source / tutorials / 008_animations / demo / finished / zombies / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';
import Zombies from './widgets/Zombies';

const r = renderer(() => w(Zombies, {}));
r.mount({ domNode: document.querySelector('my-app') as HTMLElement });
github dojo / dojo.io / site / source / tutorials / 006_deploying_to_production / demo / initial / biz-e-corp / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';
import App from './widgets/App';

const r = renderer(() => w(App, {}));
r.mount({ domNode: document.querySelector('my-app') as HTMLElement });
github dojo / dojo.io / site / source / tutorials / 002_creating_an_application / demo / initial / biz-e-corp / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { v } from '@dojo/framework/widget-core/d';

const r = renderer(() =>
	v('h1', { title: 'I am a title!' }, [ 'Biz-E-Bodies' ])
);
r.mount({ domNode: document.querySelector('my-app') as HTMLElement });
github dojo / dojo.io / site / source / tutorials / 1030_routing / demo / initial / biz-e-corp / src / main.ts View on Github external
import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';
import App from './widgets/App';

const r = renderer(() => w(App, {}));
r.mount({ domNode: document.querySelector('my-app') as HTMLElement });