Regardless - I think I found it:
Putting the following in the corresponding view does the trick:
<script>
jQuery(document).ready(function(){
jQuery('#w2p_keywords').css('width', '900px');
});
</script>
P.S. For anyone interested: In order to manipulate the object, you need to
know its id so as to pass it to a jQuery statement. Well, I found the id of
the object in question (w2p_keywords) using firefox developer tools
(pressing F12 while on the said page).
On Thursday, October 4, 2018 at 3:25:15 AM UTC+3, Θωμάς Γκλεζάκος wrote:
>
> Could someone please help me alter the width of the default field of the
> search widget in SQLFORM.grid?
>
> Thank you in advance for your time
>
> Thomas.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.