Globalization in Angular Splitter component
27 Apr 20242 minutes to read
RTL
Specifies the direction of the Splitter component using the enableRtl property. For writing systems that require it like Arabic, Hebrew, etc., the direction can be switched to right-to-left.
The following code shows how to enable RTL behavior.
import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { FormsModule } from '@angular/forms'
import { SplitterModule } from '@syncfusion/ej2-angular-layouts'
import { Component } from '@angular/core';
@Component({
imports: [
FormsModule, SplitterModule
],
standalone: true,
selector: 'app-root',
template: `
<div id='container'>
<ejs-splitter #plain height='200px' width='600' enableRtl='true'>
<e-panes>
<e-pane size='200px' content='<div class="content">Left pane</div>'>
</e-pane>
<e-pane size='200px' content='<div class="content">Middle pane</div>'>
</e-pane>
<e-pane size='200px' content='<div class="content">Right pane</div>'>
</e-pane>
</e-panes>
</ejs-splitter>
</div>`
})
export class AppComponent {
constructor() {
}
}
import { bootstrapApplication } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import 'zone.js';
bootstrapApplication(AppComponent).catch((err) => console.error(err));