* zin: support to set orderBy by string.

This commit is contained in:
sunhao
2023-10-18 11:46:25 +08:00
parent 89fd8c7d1f
commit cd73283889
+7
View File
@@ -126,6 +126,13 @@ class dtable extends wg
}
$this->setProp('footPager', $pager);
}
$orderBy = $this->prop('orderBy');
if(is_string($orderBy))
{
list($orderByName, $orderByType) = explode('_', $orderBy);
$this->setProp('orderBy', array($orderByName => $orderByType));
}
}
public static function getPageCSS(): string|false