Giter Club home page Giter Club logo

Comments (9)

aFarkas avatar aFarkas commented on August 17, 2024 1

It would be possible to make the documentation clearer by listing and describing every method by itself with examples, like in the jQuery docs: http://api.jquery.com/jQuery.ajax/

from webshim.

codler avatar codler commented on August 17, 2024

Which feature keywords can be used in "$.webshims.polyfill()" ?

from webshim.

aFarkas avatar aFarkas commented on August 17, 2024

The feature-keywords are:
es5, json-storage, geolocation, canvas, forms. forms-ext

the profiles-keywords are:
-lightweight (FF4 doesn't has to load anything. everything is included, except forms-ext)
-xlightweight (FF4 and IE9 doesn't have to load anything, everything is included except of forms and forms-ext)

If you have a suggestion how and where I should document this. Currently, it is documented in the several feature description.

from webshim.

codler avatar codler commented on August 17, 2024

You could write under "Embedding and configuring the script". There you describe lightweight but not what "all" is.

from webshim.

sarahamandus avatar sarahamandus commented on August 17, 2024

How do I style the widget buttons to be outside my date control?

So far I have this working:

$.webshims.setOptions("forms-ext", {
replaceUI: true,
date: {
startView: 2
}
});

I need to know how to set the button styles.

from webshim.

aFarkas avatar aFarkas commented on August 17, 2024

You find an example here.

It's quite simple. If you use positive margin-left styles for the buttons, they are positioned outside. Webshims detects this an will adjust the width calculation autmatically:

.input-buttons.date-input-buttons {
    margin-left: 2px;
}

Please let me know wether this helps.

from webshim.

dcardosods avatar dcardosods commented on August 17, 2024

How do I disable number input spinner?

There is an example here, but i don't understand how it was implemented...

from webshim.

aFarkas avatar aFarkas commented on August 17, 2024

This is in general explained here

So you can write:

$('input').prop('disabled', true);

or with declarative:

<input type="number" disabled />

I guess you tryed:

input.disabled = true;

Which is quite hard to implement x-browser. The interesting part of webshims is indeed, that I do not try to invent a new abstraction layer. I simply use jQuery build in methods and extend those. Especially this makes webshims so special over all shims, which implement new abstractions and therefore have to be loaded in all browsers.

from webshim.

dcardosods avatar dcardosods commented on August 17, 2024

Thanks for the answer.
Actually I don't know that setting 'disabled' to true, the controls would be disabled.

from webshim.

Related Issues (20)

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.