import { UIRenderHtmlCardProps } from '../../toolkit/toolkit-types';
import arabicIndic from '@jsamr/counter-style/presets/arabicIndic';
const html = `
- واحد
- اثنين
- ثلاثة
- أربعة
- خمسة
- ستة
- سبعة
- ثمانية
`;
const rtlListArabicConfig: UIRenderHtmlCardProps = {
title: 'RTL Mode with Arabic Counter Style',
props: {
source: {
html
},
renderersProps: {
ol: {
enableExperimentalRtl: true
}
},
customListStyleSpecs: {
'arabic-indic': {
type: 'textual',
counterStyleRenderer: arabicIndic
}
}
},
config: {
importStatements: [
{
package: '@jsamr/counter-style/presets/arabicIndic',
default: 'arabicIndic'
}
],
exprSrcMap: {
counterStyleRenderer: 'arabicIndic'
}
}
};
export default rtlListArabicConfig;