Re: Django-Autocomplete-light Styling Input Box

2018-07-10 Thread Melvyn Sopacua
On dinsdag 10 juli 2018 15:24:16 CEST umar...@gmail.com wrote:

> But now I'm not able to change the input box create by autocomplete-light.
> I've seen we can create ours custom html base on the receive data from the
> database but is there a way to just use the default Html and CSS created by
> the framework and change some styling attribute like width, of height ?

Yes you can:
- Override html[1] 
- Pass options to Select2[2] 

P.S. Excellently formulated question.
-- 
Melvyn Sopacua


[1] 
http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#displaying-results-using-custom-html
[2] 
http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#passing-options-to-select2

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1762850.8RUfgpKREi%40fritzbook.
For more options, visit https://groups.google.com/d/optout.


Django-Autocomplete-light Styling Input Box

2018-07-10 Thread umarcja
Hi,

this is my first post, please tell me if anything is wrong with the way I 
wrote question.

I am actually learning Django and I'm facing a little problem.

I've install a Postgres Database on my PC and link this Database to my 
Django Project.

I've install django-autocomplete-light to search threw the database while 
i'm typing in the input box.

But now I'm not able to change the input box create by autocomplete-light. 
I've seen we can create ours custom html base on the receive data from the 
database but is there a way to just use the default Html and CSS created by 
the framework and change some styling attribute like width, of height ?

I've add 2 pictures of what my app is rendering, and I just want the first 
input box (Created by autocomplete model) to look like the second one 
create by my own input box and css styling sheets.

Thanks a lot

Have a great day everyone.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7e0377a5-2faf-4c4c-b0e9-6590e3a09b64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.