Using HTML5 input types and attributes

QuestionsCategory: How TosUsing HTML5 input types and attributes
Fred asked 1 year ago

It should be a good idea to allow html5 natives input types for $col[“edittype”] and attributes as pattern forĀ $col[“edittype”].

Those html5 fields should be more useful with mobile devices (adapted keyboard, validation, automatic warning,…)

1 Answers
Abu Ghufran Staff answered 7 months ago

Hello,

I verified it and it’s already supported with an small addition.

We have html attributes support present and ‘type’ attribute can be added there as well. E.g. here size and type are html built-in attributes.

$col[“editoptions”] = “array(“size”=>30, “type”=>”date”);

You can have all such attributes as mentioned here:

https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

17 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?