Yii Framework Forum: Yii2 Widgets Extension - Yii Framework Forum

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Yii2 Widgets Extension Collection of useful Yii 2 widgets for Twitter Bootstrap theming. Rate Topic: ***** 3 Votes

#41 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 11 April 2014 - 08:30 AM

View PostNicola, on 11 April 2014 - 05:38 AM, said:

Ok, re-initialization is needed, solved with your code
$("#input-id").fileinput(options); 


Nice to know that resolved it. You normally would need to handle Jquery plugins carefully on ajax requests.
0

#42 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 25 April 2014 - 01:33 PM

Star rating plugin is upgraded to NEW RELEASE 2.0. The plugin is vastly enhanced with various features like Fractional Ratings, Slide to select, css3 animations, RTL input and more.

Refer updated plugin documentation and demos.

This is reflected in the yii2-widgets bundle as well.
0

#43 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 02 May 2014 - 08:24 AM

New Dependent Dropdown widget, DepDrop added. This is a Yii 2 wrapper for the dependent-dropdown jQuery plugin by Krajee. This plugin allows multi level dependent dropdown setup with nested dependencies.
0

#44 User is offline   langy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 27-November 13

Posted 04 May 2014 - 01:53 AM

Thanks for the extension. Got this installed flawlessly through composer.

All the widgets are really useful.

Any ideas on adding a file upload feature in addition to fileinput?
0

#45 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 05 May 2014 - 08:20 AM

View Postlangy, on 04 May 2014 - 01:53 AM, said:

Thanks for the extension. Got this installed flawlessly through composer.

All the widgets are really useful.

Any ideas on adding a file upload feature in addition to fileinput?

Something probably will consider in future - since file upload involves security considerations. There are other upload extensions available for you to try out.
0

#46 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 05 May 2014 - 08:20 AM

Added support for Dependent Dropdown widget to support and render the \kartik\widgets\Select2 widget. Refer documentation and demos.
0

#47 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 23 May 2014 - 07:26 AM

The FileInput plugin has been upgraded to v1.5.0 and with this release, it allows you to set an initial preview and caption of files (for update scenarios).

Refer usage demo or plugin docs and plugin demos.
0

#48 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 27 May 2014 - 01:57 PM

The StarRating plugin has been upgraded to v2.5.0. Enhanced the plugin for cross browser support including support for touch devices and mobile platforms like iOS,Android.

Refer the plugin docs or plugin demo for more details.
0

#49 User is offline   Sekhon 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 05-June 14
  • Location:Venlo, Netherlands

Posted 18 July 2014 - 08:08 AM

I am using file input Attachment_50 in a yii2 project. and i am opening the form in a modal, but the file input sends no data. if i open the form directly without modal i can upload the image. but if i open it in modal the file input is empty.
0

#50 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 19 July 2014 - 04:00 AM

View PostSekhon, on 18 July 2014 - 08:08 AM, said:

I am using file input Attachment_50 in a yii2 project. and i am opening the form in a modal, but the file input sends no data. if i open the form directly without modal i can upload the image. but if i open it in modal the file input is empty.

This is been answered in your other post here.

You need to wrap the form markup and the widget within the modal body. Check a working example of a FileInput widget display within a bootstrap Modal window on the demo site advanced usage section here.
0

#51 User is offline   Alhazred 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 04-January 15
  • Location:Rome (Italy)

Posted 07 January 2015 - 10:31 AM

Hi, I'm using the datepicker and it works, the only thing is that I would like to have an empty label to show the text only as placeholder, but I can't do that.
The datepicker is used within a form and the field needs a custom validator.
This is the code in use to show the widget
echo DatePicker::widget([
    'model' => $model,
    'form' => $form,
    'name' => 'birth_date',
    'id' => 'signupform-birth_date',
    'type' => DatePicker::TYPE_COMPONENT_APPEND,
    'attribute' => 'birth_date',
    'options' => ['placeholder' => Yii::t('user','Birth Date')],
    'pluginOptions' => [
        'autoclose'=>true,
        'format' => 'dd/mm/yyyy'
    ]
]);


If I'm not going wrong, I think that in this case the label is generated by the use of 'attribute', but I can't remove it.

Is there any setting to specify an empty label for the field associated to the widget?
0

#52 User is offline   jaydip 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 03-October 16

Posted 05 October 2016 - 02:40 AM

Hello kartik,

i am using your color input.it is working fine but i want to know just how to display selected color in html background in grid view and simple view section.please help me with that.

thanks
0

#53 User is offline   DarkSlash 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 05-July 15

Posted 03 December 2016 - 09:29 AM

Can I use it outside ActiveForm? I use it like DepDrop::widget to try use it outside an ActiveForm but I get the error "Either 'name', or 'model' and 'attribute' properties must be specified.". Im NOT using it in a model, I don't need to. Can I still use this widget?
0

#54 User is offline   blupointmedia 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 06-August 13

Posted 19 June 2017 - 08:39 AM

Hello,

First, thanks for the excellent Yii2 Typehead extension.
How would I pass extra JS value parameters with each request?

http://demos.krajee....tails/typeahead

I have tried the following approach, but JSON encoding is happening on the double quotes.

--

'dataset' =>
[[
'remote' =>
[
'url' => '/path/to/url?q=%QUERY&state=" + $(\'stateform-name\').val() + "',
'wildcard' => '%QUERY',
],
'limit' => 10
]]
0

Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users