| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace zin;
- class modalNextStep extends wg
- {
- /**
- * @var mixed[]
- */
- protected static $defineProps = array(
- 'tip: string',
- 'items: array'
- );
- public static function getPageCSS()
- {
- return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
- }
- protected function build()
- {
- $tip = $this->prop('tip');
- $items = $this->prop('items');
- return modalDialog
- (
- setClass('modal-next-step'),
- row
- (
- set::align('center'),
- setClass('gap-2'),
- center
- (
- setClass('w-8 h-8 rounded-full success'),
- icon(setClass('text-xl font-bold'), 'check')
- ),
- span
- (
- setClass('font-medium text-md'),
- $tip
- )
- ),
- set::footerActions($items)
- );
- }
- }
|