Yii Framework Forum: [Extension] E-Mail Address List Widget - Like Ymail Or Gmail - Yii Framework Forum

Jump to content

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

[Extension] E-Mail Address List Widget - Like Ymail Or Gmail Widget for managing many mail addresses Rate Topic: -----

#1 User is offline   erharddinhobl 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 06-April 13

Posted 06 April 2013 - 10:55 AM

What it does?

It is a GUI control which provides functionality for handling a list of emails. The user can
also input new email adresses or even complete texts where email address are beeing extracted.
similar to this is the nowadays email adress receipe input in GMail or YMail. The entries can
also be edited by the user.

Use it as follows inside a form:

example:

<?php $form = $this->beginWidget('CActiveForm', .... ?>

<?php
//this is the actual code to call the widget
$this->widget('application.extensions.BulkMail.BulkMail',
array(
'model' => $model,
'field' => 'emails',
'form' => $form
)
);
?>

Mandatory parameters:
$model the model where the data is stored and comes from
$field the name of the field where the data is stored and comes from inside the model
$form the form object where the widget is embedded

Optional parameters:
$regEx (default: "/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi") for the detection of
emails within the string the user puts in - must be a javascript regex
$cssEntry (default "background-color: #FFEFB2; border: 1px solid #EEEEEE; display: inline-block; padding: 2px; margin: 2px;")
the css for one entry of an email adress
$cssInputNew (default: "border: 0px solid; width: 98%; padding: 2px; font-size: 16px;")
the css for the text input field where the user can input new emails
$cssEditInputField (default: "") the css for the
edit input field
$cssContainer (default: "border: 1px solid #9b9b9b;") the css for the
overall div where everything is placed
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