Code Monkey home page Code Monkey logo

quasar-ui-qribbon's Introduction

It's likely this App Extension will be deprecated (no support for Quasar v2/Vue 3) unless it gets a strong representation from developers using it.

QRibbon (Vue Plugin, UMD and Quasar App Extension)

@quasar/quasar-ui-qribbon @quasar/quasar-app-extension-qribbon GitHub code size in bytes GitHub repo size in bytes

Structure

  • /ui - standalone npm package (more information can be found here)
  • /app-extension - Quasar app extension
  • /demo - docs, demo and examples project
  • live demo - live docs, demo and examples

Donate

If you appreciate the work that went into this, please consider donating to Quasar or Allan.

License

MIT (c) Allan Gaunt [email protected]

quasar-ui-qribbon's People

Contributors

dependabot[bot] avatar emahuni avatar hawkeye64 avatar lucasfernog avatar rstoenescu avatar webnoob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

quasar-ui-qribbon's Issues

There is no option for the default decoration.

The decoration prop needs a value that can be set for it instead of null. When a wrapper is applied to the class with a different default value then vue spews errors when null/empty string is passed for the decoration property value.

Example wrapper definition

<template>
  <q-ribbon
    :position="position"
    :color="color"
    :background-color="backgroundColor"
    :leaf-position="leafPosition"
    :leaf-color="leafColor"
    :decoration="decoration"
    v-on="$listeners"
    v-bind="$attrs"
  >
    <slot></slot>
  </q-ribbon>
</template>
export default {
  name: 'Ribbon',
  props: {
    position: { default: 'left' },
    color: { default: '#ffffff' },
    backgroundColor: { default: 'primary' },
    leafPosition: { default: 'bottom' },
    leafColor: { default: 'accent' },
    decoration: { default: 'point-in', validator: prop => typeof prop === 'string' || prop === null }
  },

  data () {
    return {}
  }
}

Example desired usage

<ribbon
  size="full"
  decoration="leaf" <!-- or even "default" -->
>
    My Ribbon Text
</ribbon>

Quasar V2 support

When build with Quasar V2, an error showed up:
Extension(@quasar/qribbon): is not compatible with quasar v2.0.0-beta.8. Required version: ^1.5.1

Wrong link to Examples

Describe the bug
Link to the examples has a wrong target to
https://quasarframework.github.io/app-extension-qribbon/examples instead of
https://quasarframework.github.io/quasar-ui-qribbon/examples

To Reproduce

  1. Go to Documentation Page
  2. Click on Examples can be found here

Expected behavior
Open live examples https://quasarframework.github.io/quasar-ui-qribbon/examples

Dependency on @quasar/colorize

While the instruction says quasar ext add @quasar/qribbon is the command to install, there is a dependency to @quasar/colorize that requires manual add, or it fails.

Maybe the instruction can be improved or quasar ext add can become smarter to detect the dependencies and install them automatically.

Problem with leafs and overflow

I'd like to have the q-card with ribbon and no horisontal scroll bar. But ribbon leafs dissapeared when adding the "overflow-x: hidden;" as below. What I'm doing wrong ?

<q-card class="bg-grey-2" style="overflow-x: hidden; max-width: 85vw; max-height: 85vh;">
      <div class="box-ribbon-wrapper">
        <div class="flex justify-between q-pt-xl">
          <q-ribbon class="q-pb-md" background-color="primary" size="full" style="width: 100%; font-size: 3vh" glow glow-iteration count="1" inline>Ribbon Text</q-ribbon>
        </div>
      </div>
</q-card>

Decoration prop validation throwing error

[Vue warn]: Invalid prop: custom validator check failed for prop "decoration".

found in

---> <QRibbon>

This is regardless of the value or options given.

eg:

<q-ribbon decoration="point-out" >Blah</q-ribbon>

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.