Giter Site home page Giter Site logo

bootstrap-form-components's People

Contributors

alex-deaconu avatar nexus-uw avatar settinghead avatar stulees avatar winkervsbecks avatar

Watchers

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

bootstrap-form-components's Issues

When initializing font picker with custom font, custom font name is not retrievable

@donnapep

if (currentFont === CUSTOM_FONT_TEXT) {
   var fontFamily = _getCustomFontName();

   utils.loadCustomFont(fontFamily, customFontURL, options.contentDocument);
}

_getCustomFontName is only a private function which means when initializing font picker with a custom font, there is no public API in retrieving the custom font name. Specifically, I am creating sample text to show the user their font selected and I can't apply a value for font-family without the custom font name.

"googleFontSelected" event does not pass font name or font family

      $googleFonts.on("select", function(e, family) {
        addGoogleFont(family, true);
        $googleFonts.modal("hide");

        currentFont = $family.val();

        $selectBox.trigger("googleFontSelected", family);
      });

The event being triggered is passing family but this is a jquery object. For the purposes of what I need, I need the value from the function getFontStyle(). It could also be helpful to pass the font too via getFont()

Using a Custom Font is not saved in the Widget Settings

How it works now:

  1. Select "Use Custom Font" from the dropdown, and enter the path to your font. Notice that the Sample Text updates to show your font.
  2. Close and save the Widget Settings, and open them back up again, Notice that the Sample text is no longer using your custom font, and the Use Custom Font textbox is blank.

For further clarification: https://dl.dropboxusercontent.com/u/8237394/Screencasts/2014-10-30_1024.swf

How it should work:
The Custom Font should be saved in the textbox, as well as show in the Sample Text.

Originally logged as Issue 173 in widget-settings-ui-components.

font-picker not working when you change selection

Hi,
I'm struggling to make this work for the past one week. I followed your guidelines as mentioned below:
http://rise-vision.github.io/style-guide/#/components/font-picker
Though, it missed mentioning dependency,risevision.widget.common.fontpicker, to be added to my angular module, somehow i found it in one of your other examples and added it. Now its loading the font dropdown but when i select it, i'm getting below script error:

TypeError: Cannot set property 'type' of undefined

It seems its not the issue with my application. Even your demo gives same error when you change dropdown:

image

Please help me out.

Need a more generic gulp build task for js

Currently each sub-component has its own gulp concat task. This is not ideal, as we have to manually add a new task each time we add a new sub-component.

A better approach would be auto detect all components based on what's inside src/js, iterate through all relevant folder names, and auto-build for each. Finally, create the all-encompassing all.js under dist/ in case people don't bother to to pick and choose what to include.

@stulees @donnapep FYI

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.