GithubHelp home page GithubHelp logo

jlanssie / wknd Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 631 KB

The WKND project for Adobe Experience Manager.

License: Apache License 2.0

Java 36.67% Shell 2.09% Less 0.93% HTML 11.15% JavaScript 38.12% SCSS 9.63% TypeScript 0.11% Dockerfile 1.30%
adobe-experience-manager java javascript

wknd's Issues

Scoped slots

Thank you for this proof of concept repository.
I have a question rather than an issue.
Currently I'm using scoped slots to achieve a similar result but allowing some part of component template to come from the backend (ex: carousel items content) and be able to trigger some actions and data-binding on this slot.

<!-- template coming from carousel.html -->
<div data-vue-app="CarouselCmp">
  <carousel v-slot:default="spCarousel">
    <li v-on:click="spCarousel.onItemClicked">carousel item 1</li>
    <li>carousel item 2</li>
    <li>carousel item 3</li>
  </carousel>
</div>
<script>
// carousel.vue
export {
  // ...
  methods: {
    onItemClicked () {alert('click')}
  }
}
</script>
<template>
  <slot :onItemClicked="onItemClicked" />
</template>
// main.js
// JS code to initialize all elements with "data-vue-app" with createApp()

Do you see any way to have the template of the component produced by the backend with your approach?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.