Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Make component read-only

I just want the slider to be read only. not to be disabled. Disabling the slider changes the colour to a dull version.I dont want the the disabled look.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Make component read-only

Please use the same CSS properties for the disabled slider, as you use for the disabled checkbox:

pre.ui-slider.ui-disabled {
opacity: 1;
cursor: default;
pointer-events: none;
}/pre

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Make component read-only

Perfect, thank you!

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Make component read-only

Actually, No this is not working. It was working but not anymore.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Make component read-only

Please check your custom CSS, it could be overwrited with your custom style.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Make component read-only

Hi
No, it still there. I did not change anything.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Make component read-only

We are very sorry, but we can't debug your custom code, thi is something outside the scope (https://docs.appery.io/docs/general-s...) of our standard support. Please try to compare these two apps by yourself (with disabled component and without one)

leven.steve
Posts: 0
Joined: Sun Mar 04, 2012 4:01 pm

Make component read-only

What about use the ng-readonly attribute in the designer, set it to a local scope variable and then set that variable accordingly?

I have a page that I need to make a number of fields read-only unless it's being accessed by an "admin" user login. So I have $scope.isAdmin and use:
ng-readonly !isAdmin

Likewise with ng-disabled

Return to “Issues”