Yii Framework Forum: Using qTip extension - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Using qTip extension Using qTip extension on more than one input type Rate Topic: -----

#1 User is offline   trileletri 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 12-January 12

Posted 09 September 2012 - 06:35 AM

Hello, I'm using qtip extension in my form like this:

<?php echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 65, 'title'=>'Your project name. Please do not use names like: "best project ever", "come see this" and similar.')); ?>


by making title attribute appear as a qtip, this line should be added to make title appear as a qtip:

QTip::qtip('.row input[title]', $opts);


However, in my form i have other input types, such as kricheditor, datatime picker, google maps etc...

kricheditor:
Yii::import('ext.krichtexteditor.KRichTextEditor'); //KRICH TEXT EDITOR
            $pg = $this->widget('KRichTextEditor', array(
                //'title'=> 'Use this text box to enter deatailed information about your project. This description will show in your project page when user comes to take a look at it. HTML works too!',
                'model' => $model,
                'value' => $model->isNewRecord ? $model->long_description : '',
                'attribute' => 'long_description',
                'options' => array(
                    'theme_advanced_resizing' => false,
                    'theme_advanced_statusbar_location' => 'none',
                    'width' => 620,
                    'height' => 500,
                ),
            ));


datetime picker:

$this->widget('zii.widgets.jui.CJuiDatePicker', array(
                    'model' => $deadline,
                    'attribute' => 'end_time',
                    'flat' => true,
					'htmlOptions' => array(
                        'value' => date('Y-m-d'), // set the default date here
						//'value' => $newdate,
                    ),
                ));


dropdown list:
echo CHtml::activeDropDownList($model, 'idcategory', $list, array('empty' => '(Select a category)', 'title'=>'testtesttest'));


Everything works nice for input types, but how can I add qtip for dropdownlist, datetime picker, kricheditor and others in the same form? (where I use above mentioned:)
QTip::qtip('.row input[title]', $opts);

0

#2 User is offline   trileletri 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 12-January 12

Posted 10 September 2012 - 02:13 PM

Bump.
How to use qtip on krichtext editor and jui datetime picker? What's the jquery selector for it?

<script type="text/javascript">
    $('.tinymce').qtip({
    content: 'This is an active list element',
    show: 'focus',
    hide: 'blur',
    style: { 
      name: 'blue' // Inherit from preset style
    }
    })
</script>

0

#3 User is offline   trileletri 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 12-January 12

Posted 11 September 2012 - 03:44 AM

I can make use of qTip without the Yii wrapper, but I need correct selectors for the problem.
Yii makes htmltags on its own... How to select juidatetime widget and krichtexteditor (tiny mce), using jquery?
0

Share this topic:


Page 1 of 1
  • 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