Requirements ¶
Tested 1.1.8x
Usage ¶
<?php
$states = array('SC','RS');
$brMap = Yii::createComponent(array(
'class'=>'application.extensions.brmap.BrMap',
'width'=>580,
'height'=>600,
'callbackFunctionName' => 'renderTest',
'borderColor' => '0x888888',
'background' => '0xDDDDDD'
));
$brMap->changeColorStates('0x777777', array_values($states));
$brMap->build();
?>
[javascript]
<script type="text/javascript">
function renderTest(uf){
alert(uf);
}
</script>
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.