DOT

VVM

 DOCS

Version: 1.0 | 1.1 |

ResponsiveEmbed

in namespace DotVVM.Framework.Controls.Bootstrap

Renders Bootstrap Responsive Embed.

Properties

Name Type Description Notes Default Value
ClientIDMode ClientIDMode Gets or sets the client ID generation algorithm.
attribute
inner element
static value
bindable
default
1
DataContext Object Gets or sets a data context for the control and its children. All value and command bindings are evaluated in context of this value.
attribute
inner element
static value
bindable
default
ID String Gets or sets the unique control ID.
attribute
inner element
static value
bindable
default
InnerText String Gets or sets the inner text of the HTML element.
attribute
inner element
static value
bindable
default
Type ResponsiveEmbedType Gets or sets the type of the embed.
attribute
inner element
static value
bindable
default
0
Visible Boolean Gets or sets whether the control is visible.
attribute
inner element
static value
bindable
default
True

Events

Name Type Description

Usage & Scenarios

Allows blocks to be properly scaled by creating intrinsic ratio using Bootstrap Responsive Embed.

http://getbootstrap.com/components/#responsive-embed

HTML Rendered by the Control

Sample 1: Basic ResponsiveEmbed

The ResponsiveEmbed control has the Type property for specifying the embed type. The options are:

  • SixteenByNine (16:9)
  • FourByThree (4:3)
<!-- 16:9 -->
<bs:ResponsiveEmbed Type="SixteenByNine">
  <iframe src="https://www.youtube.com/embed/fZsdEiTgv6o" frameborder="0" allowfullscreen=""></iframe>
</bs:ResponsiveEmbed>

<!-- 4:3 -->
<bs:ResponsiveEmbed Type="FourByThree">
  <iframe src="https://www.youtube.com/embed/fZsdEiTgv6o" frameborder="0" allowfullscreen=""></iframe>
</bs:ResponsiveEmbed>

Suggestions


Help & Contribute

The documentation is maintained on GitHub.
We'll be happy if you edit the page and create a pull request.

Send message