deploy: ebd4cc0010
This commit is contained in:
18
node_modules/shiki/samples/gjs.sample
generated
vendored
18
node_modules/shiki/samples/gjs.sample
generated
vendored
@@ -1,18 +0,0 @@
|
||||
import { helper } from '@ember/component/helper';
|
||||
import { modifier } from 'ember-modifier';
|
||||
|
||||
const plusOne = helper(([num]) => num + 1);
|
||||
|
||||
const setScrollPosition = modifier((element, [position]) => {
|
||||
element.scrollTop = position
|
||||
});
|
||||
|
||||
<template>
|
||||
<div class="scroll-container" {{setScrollPosition @scrollPos}}>
|
||||
{{#each @items as |item index|}}
|
||||
Item #{{plusOne index}}: {{item}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
# From https://github.com/ember-template-imports/ember-template-imports
|
||||
Reference in New Issue
Block a user