Skip to content

Latest commit

 

History

History
86 lines (49 loc) · 2.48 KB

File metadata and controls

86 lines (49 loc) · 2.48 KB
layout post
title Syncfusion Dialog appearance-and-styling
description Learn here about appearance and styling with Syncfusion Essential Angular Dialog control, its elements, and more.
platform angularjs
control Angular- Dialog
documentation ug

Appearance and styling in AngularJS Dialog

Showing header

In order to display any title for our dialog, we can use the e-showheader property to display the header of the Dialog. By default, rounded corner property is true in Dialog.

{% highlight html %}

This is a simple dialog

{% endhighlight %}

Display dialog on initialization

Using [e-showoninit] property to true or false, we can either display our dialog on the page load or on any actions. By default, [showoninit] property is true in Dialog.

{% highlight html %}

e-actionbuttons="Icons">

This is a simple dialog

{% endhighlight %}

Applying Rounded Corner

You can use e-showroundedcorner property to add rounded borders to the dialog popup elements. By default, rounded corner property is disabled in Dialog.

{% highlight html %}

This is a simple dialog

{% endhighlight %}

Applying Rounded Corner

Responsive Dialog:

To set the Dialog the dialog to be responsive set the e-isresponsive property as true. By default, isresponsive property is disabled in Dialog. This will override the height and width set for Dialog on resizing the widow and in device view.

Using Adding HTML attributes

Using the e-htmlattributes property we can directly set our own html attributes to the wrapper of the Dialog component.

{% highlight html %}

This is a simple dialog

<script> angular.module('dialogApp', ['ejangular']) .controller('DialogCtrl', function ($scope) { $scope.attributes = { class: "my-class", style: "border:1px solid red" } }); </script>

{% endhighlight %}

Responsive Dialog