Wiki

Articles tagged with "widgets"X
Displaying 11-16 of 16 result(s).

Send asset folder path to a javascript of a widget

Created 2 years ago by sensorarioTips4 comments – viewed 14,530 times – ( +4 ) – version 1.1
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Customizing Yii's formatting rules (extending CFormatter)

Created 2 years ago by HaenselTips0 comments – viewed 11,868 times – ( +14 ) – version 1.1
CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model). When using CDetailView we would usually make use of PHPs implode function to create a simple string value of all values in the $product->tags array.

Yii实战中8个必备常用的扩展,模块和

Created 2 years ago by Darwin WenTips2 comments – viewed 15,951 times – ( +2 / -3 ) – version 1.1
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
tags: module, Widgets

How to use a Widget as an Action Provider

Created 3 years ago by Antonio RamirezHow-tos14 comments – viewed 27,377 times – ( +27 ) – version 1.1
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

Using the jqueryslidemenu plugin with CMenu

Created 3 years ago by Antonio RamirezHow-tos0 comments – viewed 25,436 times – ( +18 / -1 ) – version 1.1
Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

Using the jamselect widget with min and max values

Created 3 years ago by got 2 doodleHow-tos0 comments – viewed 7,616 times – ( +2 ) – version 1.1
I needed to have users select from a list of keywords, in this example they must select at least two keywords but they cannot select more than six.