Comments (6)
Is there any support for radiobuttons or bootstrap buttongroups ?
from xtform.
This is now supported with a data-tooltip-element attribute. You can use this attribute to specify what element the tooltip should show.
from xtform.
Thanks, I was working with version 0.1 beta but I see the ZIP is updated to 1.0.1.
I think I see the button group being validated in the debugger, but I am not clear on how to use the data-tooltip-element. In the code I see a tooltip-element being handled, but still it's not working.
Do you have an example ? Much appreciated.
from xtform.
I had an error in my initial data in the field i was using for tests and it is actually data-tooltip-element.
It validates correctly and it places the red border and the tooltip on the desired element.
ONLY after an initial error on my radio-button field the red-border and tooltip are not removed/reset when an value is entered.
from xtform.
Ok solved it, I added some code to the resetValidity for tooltipElement:
InputValidator.prototype.resetValidity = function () {
var that = this;
setTimeout(function () {
// remove tooltip if needed
if (that.tooltipSet) {
that.ngModel.$error.messages = undefined;
that.element.removeClass('xt-error');
that.element.tooltip('destroy');
that.tooltipSet = false;
that.scope.$apply();
// allow for a different tooltip element
if (that.attrs.tooltipElement) {
that.element = angular.element(document.getElementById(that.attrs.tooltipElement));
that.element.removeClass('xt-error-container');
}
}
});
};
I hope you can include this in your code.
from xtform.
xtform has been rewritten for 2.0 please try this branch https://github.com/refactorthis/xtform/tree/development or 2.0.0-beta.1 on bower.
from xtform.
Related Issues (20)
- CSS styles required for red borders are not documented HOT 1
- seperate tooltip element HOT 3
- translations HOT 5
- Tooltip hover behaviours HOT 4
- $validators HOT 1
- bower install not working HOT 4
- inline validation doesn't work correctly with dynamic id's HOT 2
- fix code for minification HOT 1
- How to use the pattern type for xtFormValidationInline HOT 2
- xtForm + jasmine
- Custom strategy for validation errors on form load
- it's 2015
- xtForm and UI Bootstrap $apply already in progress HOT 3
- Custom validation support? HOT 8
- Tooltips does not hide when I hit browser back button HOT 2
- Add main file to bower.json
- Problem with the validation
- Tooltips left behind HOT 2
- Does not work with nested ng-form
- Installation documentation incorrect HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xtform.