Giter VIP home page Giter VIP logo

ui5-webcomponents-sample-svelte's Introduction

UI5-logo

REUSE status

UI5 Web Components Sample ToDo App

Sample ToDo application that demonstrates the usage of UI5 Web Components using Svelte

The application showcases how to: bind properties, subscribe to and forward events, and consume UI5 Web Components within Svelte.

Project was initialized uising ViteJs and the svelte-ts tempalte

Requirements

Download and Installation

  1. Clone this repository and navigate to the downloaded directory
    git clone https://github.tools.sap/I546507/ui5-webcomponents-sample-svelte.git
    cd ui5-webcomponents-sample-svelte
  2. Install all dependencies
    yarn
  3. Start the local dev server and run the application
    yarn dev

How to obtain support

Create an issue in this repository if you find a bug or have questions about the content.

For additional support, ask a question in SAP Community.

Noteworthy

Consuming UI5 Web Components in Svelte Applications

  • Import the desired component(s) in your app to define the UI5 Web Component.

  • For example, to use ui5-button you need to import it:

    import "@ui5/webcomponents/dist/Button"; // loads ui5-button

    Then, you can use the custom element in an HTML page:

    <ui5-button>Hello world!</ui5-button>

Browser support

  • Currently only Chrome, Safari and Firefox support Web Components natively.

  • If your application should run on browsers without native Web Components support (Edge and/or IE11), import one the following modules before your first Web Component import:

  • Edge only

    import "@ui5/webcomponents-base/dist/features/browsersupport/Edge";
  • Edge and IE11

    import "@ui5/webcomponents-base/dist/features/browsersupport/IE11";

    Note: Importing the module for IE11 support automatically enables Edge support as well, so there is no need to import them both explicitly.

    Example:

    import "@ui5/webcomponents-base/dist/features/browsersupport/IE11"; // This will enable Edge and IE11 support for all Web Components below
    import "@ui5/webcomponents/dist/Button"; // loads ui5-button
    import "@ui5/webcomponents/dist/Label"; // loads ui5-label

Contributing

If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.

License

Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

ui5-webcomponents-sample-svelte's People

Contributors

akudev avatar gmbugua avatar btbernard avatar

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.